<template>
  <div class="example">
    <div class="box" v-show="isShow"></div>
  </div>
</template>

<script>
/**
 * 普通CSS过渡
 */

export default {
  data() {
    return {
      isShow: true,
      className: ''
    }
  },
  methods: {
    handleClick() {
      this.isShow = !this.isShow
    }
  }
}
</script>

<style lang="less" scoped>
.box {
  transition: all 0.3s;

  &:hover {
    cursor: pointer;
    transform: scale(1.5);
  }
}
</style>
